<?php

$isIE = $sf_request->isIE67();

$count = 1;

foreach ($filters as $filter_name => $filter):
  ?><div id="filter_<?php echo $count ?>" class="filter">
      <?php if (!$sf_request->isIE67()): ?>
      <div class="vtns_form_widget">
      <a class="FB_button"><?php echo __($filter['title']) ?><i class="icon chevron_blue"></i></a>
      <?php endif ?>
        <select name="filter_<?php echo $filter_name ?>[]" id="filter_<?php echo $filter_name ?>" onchange="submitRequest(this.id)" <?php echo $sf_request->isIE67() ? 'style="height:25px;"' : 'class="overlay"' ?>>
          <?php if ($sf_request->isIE67()): ?>
          <option selected="selected" class="generic"><?php echo __($filter['title']) ?></option>
          <?php endif ?>
          <option value="init_<?php echo $filter['title'] ?>" class="generic"></option>
          <?php foreach ($filter['items'] as $data_key => $item): ?>
            <option value="<?php echo $data_key ?>"><?php echo $filter_name == 'country' ? format_country($item['label']) : $item['label'] ?>&nbsp;
              <span class="text-black">(<?php echo $item['count'] ?>)</span>
            </option>
          <?php endforeach ?>
        </select>
        <span id="loader_filter_<?php echo $filter_name ?>" class="loaderMini" style="display:none;margin-left:2px"></span>
      <?php if (!$sf_request->isIE67()): ?>
      </div>
      <?php endif ?>
  </div>
  <?php $count++ ?>
<?php endforeach ?>
<div class="clb"></div>
